home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / TerminalTools.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  3.2 KB  |  154 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT TerminalTools;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __TERMINALTOOLS__}
  30. {$SETC __TERMINALTOOLS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC TerminalToolsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {    Errors.p                                                    }
  41. {        ConditionalMacros.p                                        }
  42. {    Memory.p                                                    }
  43. {        Types.p                                                    }
  44. {        MixedMode.p                                                }
  45. {    Menus.p                                                        }
  46. {        Quickdraw.p                                                }
  47. {            QuickdrawText.p                                        }
  48. {    Controls.p                                                    }
  49. {    Windows.p                                                    }
  50. {        Events.p                                                }
  51. {            OSUtils.p                                            }
  52. {    TextEdit.p                                                    }
  53.  
  54. {$IFC UNDEFINED __TERMINALS__}
  55. {$I Terminals.p}
  56. {$ENDC}
  57. {    CTBUtilities.p                                                }
  58. {        StandardFile.p                                            }
  59. {            Files.p                                                }
  60. {                Finder.p                                        }
  61. {        AppleTalk.p                                                }
  62. {    Connections.p                                                }
  63.  
  64. {$PUSH}
  65. {$ALIGN MAC68K}
  66. {$LibExport+}
  67.  
  68. CONST
  69.     tdefType                    = 'tdef';
  70.     tvalType                    = 'tval';
  71.     tsetType                    = 'tset';
  72.     tlocType                    = 'tloc';
  73.     tscrType                    = 'tscr';
  74.     tbndType                    = 'tbnd';
  75.     tverType                    = 'vers';
  76. { messages }
  77.     tmInitMsg                    = 0;
  78.     tmDisposeMsg                = 1;
  79.     tmSuspendMsg                = 2;
  80.     tmResumeMsg                    = 3;
  81.     tmMenuMsg                    = 4;
  82.     tmEventMsg                    = 5;
  83.     tmActivateMsg                = 6;
  84.     tmDeactivateMsg                = 7;
  85.     tmGetErrorStringMsg            = 8;
  86.     tmIdleMsg                    = 50;
  87.     tmResetMsg                    = 51;
  88.     tmKeyMsg                    = 100;
  89.     tmStreamMsg                    = 101;
  90.     tmResizeMsg                    = 102;
  91.     tmUpdateMsg                    = 103;
  92.     tmClickMsg                    = 104;
  93.     tmGetSelectionMsg            = 105;
  94.     tmSetSelectionMsg            = 106;
  95.     tmScrollMsg                    = 107;
  96.     tmClearMsg                    = 108;
  97.  
  98.     tmGetLineMsg                = 109;
  99.     tmPaintMsg                    = 110;
  100.     tmCursorMsg                    = 111;
  101.     tmGetEnvironsMsg            = 112;
  102.     tmDoTermKeyMsg                = 113;
  103.     tmCountTermKeysMsg            = 114;
  104.     tmGetIndTermKeyMsg            = 115;
  105. { messages for validate DefProc    }
  106.     tmValidateMsg                = 0;
  107.     tmDefaultMsg                = 1;
  108. { messages for Setup DefProc    }
  109.     tmSpreflightMsg                = 0;
  110.     tmSsetupMsg                    = 1;
  111.     tmSitemMsg                    = 2;
  112.     tmSfilterMsg                = 3;
  113.     tmScleanupMsg                = 4;
  114. { messages for scripting defProc    }
  115.     tmMgetMsg                    = 0;
  116.     tmMsetMsg                    = 1;
  117. { messages for localization defProc  }
  118.     tmL2English                    = 0;
  119.     tmL2Intl                    = 1;
  120.  
  121.     
  122. TYPE
  123.     TMSearchBlockPtr = ^TMSearchBlock;
  124.  
  125.     TMSearchBlock = RECORD
  126.         theString:                StringHandle;
  127.         where:                    Rect;
  128.         searchType:                TMSearchTypes;
  129.         callBack:                TerminalSearchCallBackUPP;
  130.         refnum:                    INTEGER;
  131.         next:                    TMSearchBlockPtr;
  132.     END;
  133.  
  134.     TMSetupPtr = ^TMSetupStruct;
  135.  
  136.     TMSetupStruct = RECORD
  137.         theDialog:                DialogPtr;
  138.         count:                    INTEGER;
  139.         theConfig:                Ptr;
  140.         procID:                    INTEGER;                                { procID of the tool }
  141.     END;
  142.  
  143.  
  144. {$ALIGN RESET}
  145. {$POP}
  146.  
  147. {$SETC UsingIncludes := TerminalToolsIncludes}
  148.  
  149. {$ENDC} {__TERMINALTOOLS__}
  150.  
  151. {$IFC NOT UsingIncludes}
  152.  END.
  153. {$ENDC}
  154.